Repository navigation
Fixes: FallBack to LoadDataset, Dup Arguments, Savetensor Saving - #27
Conversation
Signed-off-by: Yu Chin Fabian Lim <flim@sg.ibm.com>
|
@garrett361 def test_padding_free(self, model_name: str) -> None:
torch.manual_seed(42)
> model, cfg = self.get_fa2_model_and_cfg(model_name) |
|
Yeah expected, I should add a skip if CUDA isn't available |
|
@garrett361 it seems they now run all tests.. previously they only run one test Previously it was like this #25 |
|
Thought I saw that as well |
|
It is not necessary to include If we look at the transformation function, first tokenization and masking happens, and then columns are removed. Of course, including Also, |
|
@garrett361 can we merge this soon? we just ignore the failing test? |
| from open_instruct.utils import hf_whoami | ||
|
|
||
| # MOVE THIS SOMEWHERE | ||
| from datasets import load_dataset as lds |
There was a problem hiding this comment.
nit: move the lds import inside load_dataset so it's not exposed?
garrett361
left a comment
There was a problem hiding this comment.
Some small questions. Can merge after they're resolved.
| dfs.append(reader(file, orient='records')) | ||
|
|
||
| raw_datasets = Dataset.from_pandas(pd.concat(dfs)) | ||
| del dfs |
There was a problem hiding this comment.
nit: don't need to del dfs since it goes out of scope immediately, right?
There was a problem hiding this comment.
well yes.. was being paranoid here.
Companion PR to #6, and some additional fixes
datasets.load_datasetdoes a schema check and sometimes may fail on some files. This fallsback to pandassavetensorsaving as defaultAPI CHANGE:if the dataset hastoolsordocumentscolumns in the dataset, add this to the arguments